//
//  MYRadioGroup.h
//  HeXun-zixuan
//
//  Created by 范名扬 on 16/2/22.
//  Copyright © 2016年 com.hztc. All rights reserved.
//
//***************** 横向单选列表 **********************

#import "HZBaseMarketView.h"

//横向单选列表类型
typedef NS_ENUM(NSUInteger, KMSRadioGroupType) {
    KMSRadioGroupDefaultType = 1,
    KMSRadioGroupSepicalButtonType,
};

@interface MYRadioGroup : HZBaseMarketView
@property (nonatomic, assign)KMSRadioGroupType  nRadioGroupType;
/**
 *设置选项标题
 */
- (void)setRadioGroup:(NSArray *)radioGroup;
/**
 *设置某个选项的图片
 */
- (void)setImage:(NSString *)imageName withIndex:(NSInteger)index;
/**
 *选中某个按钮
 */
- (void)setSelectedButton:(NSInteger)index;
/**
 *选中某个按钮根据标题
 */
- (void)setSelectedButtonWithTitle:(NSString *)title;
/**
 *重置某个按钮标题
 */
- (void)resetSelectedButtonWithTitle:(NSString *)title andIndex:(NSInteger)index;
/**
 *获取选中的按钮
 */
- (UIButton *)getSelectedButton;
/**
 *是否隐藏竖直分割线和下划线
 */
- (void)setHiddenSeparateLine:(BOOL)ishiddenSeparateLine andHiddenUnderline:(BOOL)ishiddenUnderline;
/**
 *重置所有按钮的选中状态
 */
- (void)resetButtonSelectedBackImage:(NSString *)selectedBackImage andSelectedTitleColor:(UIColor *)selectedTitleColor andNormalTitleColor:(UIColor *)normalTitleColor;
/**
 *重置字体大小
 */
- (void)resetAllButtonFont:(UIFont *)font;
/**
 *重置下划线宽度
 */
- (void)resetUnderLineWidth:(CGFloat)underLineW isReset:(BOOL)isReset;
/**
 *获取按钮个数
 */
- (NSInteger)getButtonNum;
@end
